package com.ssm.anno.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Hsiao
 * @date: 2023-11-22
 * @description:
 */
@RestController
@RequestMapping("/test")
public class TestController {
    @GetMapping("/hello")
    public String hello(){
        System.out.println("hello");
        return "Hello";
    }

    @GetMapping("/index")
    public String index(){
        System.out.println("index");
        return "index";
    }

}
